package SetExample;

import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;

public class HashMapExample {
    public static void main(String[] args) {

        Map<Integer,String> map=new HashMap<>();

        map.put(1,"Hello");
        map.put(1,"world");
        System.out.println(map.toString());

        Map<String,String> treeMap=new TreeMap<String,String>();
        treeMap.put("a","sssasadasdddd");
        treeMap.put("a","what?");
        treeMap.put("b","sadasda");
        System.out.println(treeMap.toString());
    }
}

class TestObj{

}
